<template>
	<view class="content">
		<view class="main">
			<view class="header">
				<view class="title">
					<u-icon name="arrow-left" color="#FFFFFF" size="36" @tap="nextPage(`/pages/my/my?type=big`)"></u-icon>
					<text>提交证件资料</text>
				</view>
			</view>
			<view class="company">
				<view class="companyTiltle">
					<text>公司信息</text>
				</view>
				<view class="name">
					<text class="light">名称：</text>
					<input type="text"  placeholder="某某科技有限公司"
					placeholder-style="{
						width: 350px;
						font-size: 26rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #323233;
					}"
					value="" />
				</view>
				<view class="address">
					<text class="light">地址：</text>
					<input type="text"  placeholder="杭州市某某区某某街道"
					placeholder-style="{
						width: 350px;
						font-size: 26rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #323233;
					}"
					value="" />
				</view>
			</view>
			<view class="certificate">
				<view class="certificateTiltle">
					<text>营业执照</text>
				</view>
				<view class="card" @tap="tapPopup">
					<view class="photo">
						<image src="/static/login/add.png" mode=""></image>
						<text>营业执照照片</text>
					</view>
				</view>
			</view>


			<!-- 这是弹窗 -->
			<view class="popup" v-show="show">
				<view class="popupTop">
					<view class="state">
						<image src="/static/login/succeed.png" mode=""></image>
					</view>
					<view class="popupBottom">
						<text class="deep">提交审核成功</text>
						<text>未查询到您的志愿者身份</text>
						<view class="popupBtn">
							<button type="default" class="affirm" @tap="affirm"><text>知道了</text></button>
						</view>
					</view>
				</view>
			</view>
			<!-- 这是弹窗 -->


			<view class="btn" @tap="nextPage(`/pages/loginFace/loginFace?type=big`)">
				<button type="default">下一步</button>
			</view>
		</view>
		<Tabbar :current="3"></Tabbar>
	</view>
</template>

<script>
export default {
	data() {
		return {
			show:false
		}
	},
	methods: {
		// 弹窗
		tapPopup() {
			this.show = true;
		},
		// 点击弹窗确认
		affirm() {
			this.show = false;
		},
		//跳转页面
		nextPage(url) {
			uni.navigateTo({
				url: url,
				fail() {
					uni.switchTab({
						url: url,
						fail() {
							uni.showToast({
								title: '暂未开通，敬请期待！',
								icon: 'none'
							});
						}
					});
				}
			});
		}
	}
}
</script>

<style lang="scss" scoped>
.content{
	.main{
		position: relative;
		height: 100vh;
		background: #F5F7FA;

		.header{
			background: linear-gradient(90deg, #52B8B2 0%, #5EC8A3 100%);
			.title{
				position: relative;
				width: 100%;
				height: 120rpx;
				line-height: 120rpx;
				text-align: center;
				.u-icon{
					position: absolute;
					height: 120rpx;
					left: 20rpx;
				}
				text{
					font-size: 32rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #FFFFFF;
				}
			}
		}
		.company{
			margin: 30rpx 30rpx 30rpx 30rpx;
			padding: 20rpx 30rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 2rpx 8rpx 0rpx rgba(0, 0, 0, 0.2);
			border-radius: 10rpx;
			.companyTiltle{
				padding: 14rpx 0;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #323233;
			}
			.light{
				color: #646566;
			}
			.name{
				display: flex;
				align-items: center;
				margin: 20rpx 0;
				padding-bottom: 20rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #323233;
				border-bottom: #E6E6E6 1rpx solid;
			}
			.address{
				display: flex;
				align-items: center;
			}
		}
		.certificate{
			margin: 30rpx 30rpx 30rpx 30rpx;
			padding: 20rpx 30rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 2rpx 8rpx 0rpx rgba(0, 0, 0, 0.2);
			border-radius: 10rpx;
			.certificateTiltle{
				margin-bottom: 10rpx;
				padding: 14rpx 0;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #323233;
			}
			.card{
				margin-bottom: 10rpx;
				.photo{
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					height: 250rpx;
					background: #F9F9F9;
					border: 2px solid #EBEBEB;
					border-radius: 10rpx;
					image{
						width: 54rpx;
						height: 54rpx;
					}
					text{
						margin-top: 20rpx;
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #4B4C4D;
					}
				}
			}
		}
		//弹框样式
		.popup {
			position: fixed;
			left: 0;
			right: 0;
			top: 0;
			height: 100vh;
			background-color: rgba(0,0,0,0.6);
			z-index: 9998;
			.popupTop{
				position: fixed;
				padding: 40rpx;
				top: 50%;
				left: 50%;
				width: 572rpx;
				height: 538rpx;
				background: #FFFFFF;
				border-radius: 25rpx;
				transform: translate(-50%,-50%);
				font-size: 30rpx;
				z-index: 9999;
				.state{
					margin-top: 20rpx;
					text-align: center;
					image{
						width: 210rpx;
						height: 210rpx;
					}
				}
			}
			.popupBottom{
				text-align: center;
				.deep{
					margin-bottom: 10rpx;
					font-size: 38rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #000505;
				}
				text{
					display: block;
					font-size: 32rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #999999;
				}
				.popupBtn{
					button{
						position:absolute;
						right: 0;
						bottom: 50rpx;
						left: 0;
						margin: auto;
						width: 450rpx;
						height: 73rpx;
						background: #54BAAF;
						border-radius: 37rpx;
						text{
							position: absolute;
							top: 0;
							right: 0;
							bottom: 0;
							left: 0;
							margin: auto;
							font-size: 26rpx;
							font-family: PingFang;
							font-weight: bold;
							color: #FFFFFF;
						}
					}
				}
			}
		}
		//弹框样式
		.btn{
			position: absolute;
			bottom: 200rpx;
			width: 100%;
			padding: 0 30rpx;
			button{
				height: 76rpx;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: bold;
				background: #57BFAB;
				color: #FFFFFF;
				border-radius: 40rpx;
			}
		}
	}
}
</style>
